package com.ocom.mqsubsidy.business.coupons.impl;

import com.ocom.mqsubsidy.business.coupons.ImportCouponsVoucherService;
import com.ocom.mqsubsidy.utils.ImportCouponsVoucherUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ImportCouponsVoucherServiceImpl implements ImportCouponsVoucherService {
    @Resource
    private ImportCouponsVoucherUtil importCouponsVoucherUtil;

    public void handle(String msg) {

        //消息队列调用减库存接口  优先级越高越先执行完

        importCouponsVoucherUtil.sendMsg(msg,15);

    }
}
